<template>
	<div id="about">
		<div class="one1">
			<img class="one1_img" src="../assets/icon4.png" />
			<span @click="tuichu">确认订单</span>
		</div>
		<div class="item1_div" v-for="item in addressList">
			<div class="item1_top_div">
				<span>收货地址</span>
			</div>
			<div class="item1_bottom_div">
				<div class="item1_bottom_left_div">
					<p>{{item.address}}</p>
				</div>
				<router-link to="/EditAddress">
					<img v-for="url in item.img" src="../assets/icon_next.png" />
				</router-link>
			</div>
			<div class="item1_name_tel">
				<span>{{item.Name}}</span>
				<span>{{item.Tel}}</span>
			</div>
		</div>
		<div class="item1_div1" v-for="item in dataList">
			<div class="item1_top_div1">
				<span>{{item.shopName}}</span>
			</div>
			<div class="item1_bottom_div1" v-for="item1 in item.datalist">
				<div class="item1_bottom_left_div1">
					<div class="item1_bottom_left_one_div1">
						<img :src="item1.imgs" />
					</div>
					<div class="item1_bottom_left_two_div1">
						<p>{{item1.guige}}</p>
						<p>￥{{item1.price}} x {{item1.num}}</p>
					</div>
				</div>
				<div class="item1_bottom_right_div1">
					<p>￥{{item1.zong}}</p>
				</div>
			</div>
			<div class="item1_bottom_bottom_div1">
				共计3件/1.4kg ﹀
			</div>
		</div>
		<div class="bottom1_div">
			<div class="tab1_div">
				实付金额￥62
				<button @click="tijiao">提交订单</button>
			</div>
		</div>
	</div>
</template>
<script>
	export default {
		data() {
			return {
				addressList: [{
					"Name": "小慕",
					Tel: 18911023261,
					"address": "北京理工大学国防科技园2号楼10层",
					img: [require("../assets/icon_order.png")]
				}],
				dataList: [{
					"shopName": "沃尔玛",
					datalist: [{
						"guige": "番茄250g/份",
						imgs: require("../assets/icon_order.png"),
						price: 33.6,
						num: 3,
						zong: 99.9
					}, {
						"guige": "提子250g/份",
						imgs: require("../assets/icon_order.png"),
						price: 33.6,
						num: 3,
						zong: 99.9
					}]
				}, ]
			}
		},
		methods:{
			tuichu(){
				this.$router.push('/shopcar');
			},
			tijiao(){
				this.$router.push('/signout')
			}
		}
	}
</script>
<style scoped>
	/* 单独给页面设置背景色 */
	#about {
		background-color: #f8f8f8;
		height: 100%;
		position: fixed;
		width: 100%;
	}

	.one1 {
		background-image: linear-gradient(0deg, rgba(0, 145, 255, 0.00) 4%, #0091FF 50%);
		height: 160px;
		width: 100%;
		display: flex;
	}

	.one1 :nth-child(1) {
		width: 9.3px;
		height: 16px;
		color: #B6B6B6;
		padding-left: 10px;
		padding-top: 21px;
	}

	.one1 :nth-child(2) {
		text-align: center;
		font-size: 16px;
		color: #FFFFFF;
		padding-top: 21px;
		flex: 1
	}

	#about .item1_div {
		height: 111px;
		margin-left: 18px;
		margin-right: 18px;
		width: 90%;
		margin-top: -75px;
		background-color: white;
	}

	#about .item1_div span {
		font-size: 16px;
		color: #333333;
		padding-left: 16px;
	}

	#about .item1_div .item1_top_div {
		padding-top: 16px;
	}

	#about .item1_div .item1_bottom_div {
		padding-left: 16px;
		display: flex;
		padding-top: 14px;
	}

	#about .item1_div .item1_bottom_div :nth-chil d(1) {
		font-size: 14px;
		color: #333333;
		flex: 20;
	}

	#about .item1_div .item1_bottom_div :nth-child(2) {
		flex: 1;
	}

	#about .item1_div .item1_name_tel {
		padding-top: 6px;
	}

	#about .item1_div .item1_name_tel span {
		font-size: 12px;
		color: #666666;
	}




	.item1_div1 {
		background: #FFFFFF;
		margin-bottom: 16px;
		margin-left: 18px;
		margin-right: 18px;
		border-radius: 4px;
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: 16px;
		margin-top: 16px;
	}

	.item1_bottom_div1 {
		margin-bottom: 16px;
	}

	.item1_bottom_bottom_div1 {
		margin-top: 16px;
		margin-left: 16px;
		margin-right: 16px;
		height: 28px;
		background: #F5F5F5;
		text-align: center;
		font-family: PingFangSC-Light;
		font-size: 14px;
		color: #999999;
		line-height: 28px;
	}

	.item1_div1 .item1_top_div1 {
		height: 54px;
		line-height: 54px;
		display: flex;
		justify-content: space-between;
	}

	.item1_bottom_left_div1 {
		display: flex;
		justify-content: space-between;
	}

	.item1_bottom_left_two_div1 :nth-child(1) {
		margin-bottom: 6px;
	}

	.item1_div1 .item1_top_div1 :nth-child(1) {
		font-size: 16px;
		color: #333;
	}

	.item1_div1 .item1_top_div1 :nth-child(2) {
		font-size: 14px;
		color: #999;
	}

	.item1_div1 .item1_bottom_div1 {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.item1_div1 .item1_bottom_div1 .item1_bottom_left_div1 .item1_bottom_left_one_div1 img {
		width: 46px;
		height: 46px;
		margin-right: 16px;
	}

	.item1_div1 .item1_bottom_div1 .item1_bottom_left_div1 .item1_bottom_left_two_div1 :nth-child(1) {
		font-family: PingFangSC-Medium;
		font-size: 14px;
		color: #333333;
		text-align: left;
	}

	.item1_div1 .item1_bottom_div1 .item1_bottom_left_div1 .item1_bottom_left_two_div1 :nth-child(2) {
		font-size: 14px;
		color: #E93B3B;
		margin-bottom: 2px;
	}

	.item1_div1 .item1_bottom_div1 .item1_bottom_right_div1 :nth-child(1) {
		font-family: PingFangSC-Regular;
		font-size: 14px;
		color: #000000;
		text-align: right;

	}

	.bottom1_div {
		background: white;
		height: 49px;
		position: fixed;
		bottom: 0;
		width: 100%;
		display: flex;

		text-align: center;
	}

	.bottom1_div .tab1_div {
		flex: 1;

		text-align: start;

		height: 49px;

		margin-left: 24px;

		font-size: 14px;

		color: #333333;
	}

	.tab1_div button {
		line-height: 49px;
		background-color: #4FB0F9;
		color: white;
		border: none;
		border-radius: 4px; 
		text-align: end;
		margin-left: 162px;
		padding-right: 22px;
		width: 98px;
	}
</style>
